package cn.bxshey.systemLogInfo.controller;

import cn.bxshey.systemLogInfo.mapper.BabyLogMapper;
import cn.bxshey.systemLogInfo.pojo.BabyLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @作者：不想说话而已
 * @Date：2023/12/9 11:44
 */

@RestController
@RequestMapping("/log")
public class BaByLogController {

    @Autowired
    BabyLogMapper babyLogMapper;

    @GetMapping("/get")
    public List<BabyLog> get(){
       return  babyLogMapper.selectGetAll();
    }

}
